ATSPI was written for CORBA, which allows passing around "nil"
as valid object references.
}
if (res == NULL)
- res = g_variant_new ("(so)", "", "/org/a11y/atspi/null");
+ res = gtk_at_spi_null_ref ();
}
else if (g_strcmp0 (property_name, "ChildCount") == 0)
{
return GTK_ACCESSIBLE_ROLE_WIDGET;
}
+
+GVariant *
+gtk_at_spi_null_ref (void)
+{
+ return g_variant_new ("(so)", "", "/org/a11y/atspi/null");
+}
AtspiRole
gtk_accessible_role_to_atspi_role (GtkAccessibleRole role);
+GVariant *
+gtk_at_spi_null_ref (void);
+
G_END_DECLS